//
//  MessageViewController.m
//  BigJoy
//
//  Created by Rowling on 2017/7/20.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "MessageViewController.h"

@interface MessageViewController ()

@end

@implementation MessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUI];
}

-(void)setUI {
    UIView * navView = [[UIView alloc]initWithFrame:CGRectMake(0, 20, SCREEN_WIDTH, 44)];
    UIButton * btn = [UIButton new];
    [btn setImage:[UIImage imageNamed:@"refresh_arrow"] forState:UIControlStateNormal];
    [navView addSubview:btn];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.with.equalTo(@44);
        make.left.equalTo(navView);
        make.top.equalTo(navView);
    }];
    @weakify(self);
    [[btn rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self);
        [self.navigationController popViewControllerAnimated:YES];
    }];
}



@end
